﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Player
    {
        private string _name;
        private int _pchu;
        private int _ying;


        public Player() { }

        public Player(string name, int pchu)
        {
            Name = name;
            Pchu = pchu;
        }

        public string Name { get => _name; set => _name = value; }
        public int Pchu { get => _pchu; set => _pchu = value; }
        public int Ying { get => _ying; set => _ying = value; }

        public void Say()
        {
            switch (Pchu)
            {
                case 1:
                    Console.WriteLine("{0}出拳：剪刀", this.Name);
                    break;
                case 2:
                    Console.WriteLine("{0}出拳：石头", this.Name);
                    break;
                case 3:
                    Console.WriteLine("{0}出拳：布", this.Name);
                    break;
                default:
                    break;
            }
        }
    }
}
